package com.example.server.Service;

import com.example.server.mapper.Reviewmapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ReviewService {
    @Autowired
    Reviewmapper reviewmapper;
    public int getlove(int uid) {
        return reviewmapper.getlove(uid);
    }

    public int getlovebylocationpersonid(String lo_id, String uid) {
        return reviewmapper.getbylocation(lo_id,uid);
    }

    public int getfarid(String loid, String uid) {
        return reviewmapper.getfarid(loid,uid);
    }

    public boolean addlove(String lid, String uid) {
        return reviewmapper.addlove(lid,uid);
    }

    public boolean addfar(String lid, String uid) {
        return reviewmapper.addfar(lid,uid);
    }

    public boolean dellove(String lid, String uid) {
        return reviewmapper.dellove(lid,uid);
    }

    public boolean delfar(String lid, String uid) {
        return reviewmapper.delfar(lid,uid);
    }
}
